.drugCard {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 16px;
}

.drugCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.drugImageContainer {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.drugImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.drugCard:hover .drugImage {
  transform: scale(1.05);
}

.drugState {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 77, 79, 0.9);
  color: white;
  padding: 4px 5px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.drugInfo {
  padding: 5px;
}

.drugName {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
}

.drugPrice {
  margin-bottom: 8px;
}

.currentPrice {
  font-size: 16px;
  font-weight: 700;
  color: #ff4d4f;
}

.drugActions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.starIcon {
  color: #ffa940;
  font-size: 14px;
}

.heartIcon {
  color: #d9d9d9;
  font-size: 16px;
  transition: color 0.3s ease;
}

.heartIcon:hover {
  color: #ff4d4f;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .drugCard {
    margin-bottom: 12px;
  }
  
  .drugImageContainer {
    height: 120px;
  }
  
  .drugName {
    font-size: 13px;
  }
  
  .currentPrice {
    font-size: 15px;
  }
}
